import pyautogui

pyautogui.FAILSAFE = False
pyautogui.PAUSE = 0

# 图像识别（一个）
# btm = pyautogui.locateOnScreen('mine1.png')
# print(btm)  # Box(left=1280, top=344, width=22, height=22)

# 图像识别（多个）
# btm = pyautogui.locateAllOnScreen('mine1.png')
btm = pyautogui.locateAll('mine1.png', 'image-2.png', )
# cv2.matchTemplate
print(btm)  # [Box(left=1280, top=344, width=22, height=22), Box(left=25, top=594, width=22, height=22)]
print(list(btm))
# pyautogui==0.9.38
# pip install pyautogui==0.9.50
